package com.easyweb.generator.service;

import java.util.List;

import com.easyweb.generator.model.PageResult;
import com.easyweb.generator.model.ResponseModel;
import com.easyweb.generator.model.SysUser;

/**
* 
* @fileName:SysUserService.java
* @author:WeiHui.Zhang
* @date:2016-06-24 03:06:16
* @version:V1.00
*/
public interface SysUserService {

	/**
	 * 查询列表
	 * @param model 
	 * @return List   
	 * @throws Exception 异常 
	 */
	List<SysUser> findSysUserList(SysUser model) throws Exception;
	
	/**
	 * 分页查询
	 * @param model
	 * @param pageV0  
	 * @return PageResult  
	 * @throws Exception 异常  
	 */
	PageResult<SysUser> selectSysUserSet(SysUser model, PageReuqest pageV0) throws Exception;

    /**
    *新增或修改SysUser
    *@param model 
    *@return int 受影响的行数 
    *@throws Exception 异常  
    */
     int  createOrUpdateSysUser(SysUser model) throws Exception;
     
    /**
    *新增或修改SysUser
    *@param model 
    *@return ResponseModel 受影响的行数和处理过后的Module
    *@throws Exception 异常 
    */
     ResponseModel createOrUpdate(SysUser model) throws Exception;
    
    /**
    *根据ID查询SysUser
    *@param id 要查询的对象的ID
    *@return SysUser 
    *@throws Exception 异常  
    */
    SysUser findSysUserById(Long id) throws Exception;
    
    /**
    *逻辑删除SysUser
    *@param id 
    *@return int 受影响条数
    *@throws Exception 异常  
    */
    int deleteSysUserById(Long id) throws Exception;
    
    /**
    *物理删除SysUser
    *@param id
    *@return int 受影响条数
    *@throws Exception 异常   异常
    */
    int physicalDeleteSysUserById(Long id) throws Exception;
    
}
